<template>
  <div>
    login
    {{$store.state.login.count}}
    {{$store.state.home.money}}
    <button
      @click="increment(10)"
    >增加</button>
    <button @click="decrement">减少</button>
  </div>
</template>

<script>
import { mapActions } from "vuex";
export default {
  methods: {
    ...mapActions("login", ["increment", "decrement"])
  }
};
</script>

<style lang="css" scoped>
</style>